package com.jmlee.pojo;

import java.util.Date;

/**
 * @author： 郑锦涛
 * @data： 2021/3/10 10:41
 * @version：1.0
 * @描述： 订单表 对应orders表
 */
public class Order {


    /**
     * id   id
     * userId   用户id
     * receiverName 收货人
     * receiverMobile   收货人手机
     * receiverAddress  收货人地址
     * receiverLatitude 收货人纬度
     * receiverLongitude收货人经度
     * totalAmount  订单总价格
     * realPayAmount    实际支付价格
     * postAmount   配送费
     * payMethod    支付方式    1：微信    2：支付宝
     * leftMsg      买家留言
     * extand       扩展字段
     * isComment    买家是否评价  1：已评价   0：未评价
     * isDelete     是否删除    1：删除    0：未删除
     * createdTime  创建时间
     * shopId       商家id
     * riderId      骑手id
     */
    private Long id;
    private Long userId;
    private String receiverName;
    private String receiverMobile;
    private String receiverAddress;
    private float receiverLatitude;
    private float receiverLongitude;
    private Integer totalAmount;
    private Integer realPayAmount;
    private Integer postAmount;
    private Integer payMethod;
    private String leftMsg;
    private String extand;
    private Integer isComment;
    private Integer isDelete;
    private Date createdTime;
    private Long shopId;
    private Long riderId;

    public Order() {
    }

    public Order(Long id, Long userId, String receiverName, String receiverMobile, String receiverAddress, float receiverLatitude, float receiverLongitude, Integer totalAmount, Integer realPayAmount, Integer postAmount, Integer payMethod, String leftMsg, String extand, Integer isComment, Integer isDelete, Date createdTime, Long shopId, Long riderId) {
        this.id = id;
        this.userId = userId;
        this.receiverName = receiverName;
        this.receiverMobile = receiverMobile;
        this.receiverAddress = receiverAddress;
        this.receiverLatitude = receiverLatitude;
        this.receiverLongitude = receiverLongitude;
        this.totalAmount = totalAmount;
        this.realPayAmount = realPayAmount;
        this.postAmount = postAmount;
        this.payMethod = payMethod;
        this.leftMsg = leftMsg;
        this.extand = extand;
        this.isComment = isComment;
        this.isDelete = isDelete;
        this.createdTime = createdTime;
        this.shopId = shopId;
        this.riderId = riderId;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userId=" + userId +
                ", receiverName='" + receiverName + '\'' +
                ", receiverMobile='" + receiverMobile + '\'' +
                ", receiverAddress='" + receiverAddress + '\'' +
                ", receiverLatitude=" + receiverLatitude +
                ", receiverLongitude=" + receiverLongitude +
                ", totalAmount=" + totalAmount +
                ", realPayAmount=" + realPayAmount +
                ", postAmount=" + postAmount +
                ", payMethod=" + payMethod +
                ", leftMsg='" + leftMsg + '\'' +
                ", extand='" + extand + '\'' +
                ", isComment=" + isComment +
                ", isDelete=" + isDelete +
                ", createdTime=" + createdTime +
                ", shopId=" + shopId +
                ", riderId=" + riderId +
                '}';
    }

    public float getReceiverLatitude() {
        return receiverLatitude;
    }

    public void setReceiverLatitude(float receiverLatitude) {
        this.receiverLatitude = receiverLatitude;
    }

    public float getReceiverLongitude() {
        return receiverLongitude;
    }

    public void setReceiverLongitude(float receiverLongitude) {
        this.receiverLongitude = receiverLongitude;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getReceiverMobile() {
        return receiverMobile;
    }

    public void setReceiverMobile(String receiverMobile) {
        this.receiverMobile = receiverMobile;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getRealPayAmount() {
        return realPayAmount;
    }

    public void setRealPayAmount(Integer realPayAmount) {
        this.realPayAmount = realPayAmount;
    }

    public Integer getPostAmount() {
        return postAmount;
    }

    public void setPostAmount(Integer postAmount) {
        this.postAmount = postAmount;
    }

    public Integer getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(Integer payMethod) {
        this.payMethod = payMethod;
    }

    public String getLeftMsg() {
        return leftMsg;
    }

    public void setLeftMsg(String leftMsg) {
        this.leftMsg = leftMsg;
    }

    public String getExtand() {
        return extand;
    }

    public void setExtand(String extand) {
        this.extand = extand;
    }

    public Integer getIsComment() {
        return isComment;
    }

    public void setIsComment(Integer isComment) {
        this.isComment = isComment;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getRiderId() {
        return riderId;
    }

    public void setRiderId(Long riderId) {
        this.riderId = riderId;
    }
}
